package com.gzsxy.builder.demo1;

import com.gzsxy.builder.demo1.Product;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 下单
 * @date 2022/4/10 23:42
 */
public class Test {
    public static void main(String[] args) {
        //服务员
        Worker worker = new Worker();
        //链式编程
        Product product = worker.buildA("全家桶").buildB("雪碧").getProduct();

        System.out.println(product.toString());
    }
}
